<include file="Layout/header" title="删除用户" />
<include file="Layout/sidebar" />
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            用户管理
            <small>删除用户</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 用户管理</a></li>
            <li class="active">删除用户</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <script src="__PLUGIN__/layer/layer.js"></script>
        <link rel="stylesheet" href="__PLUGIN__/layer/skin/default/layer.css">
        <!-- Horizontal Form -->
        <div class="box box-info" style="width:90%;margin: 0 auto;">
            <div class="box-header with-border">
                <h3 class="box-title">用户参数</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal" action="" method="post">
                <div class="box-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户名称</label>
                        <div class="col-sm-10">
                            <input type="hidden" name="id" value="{$data.id}" />
                            <label class="form-control">{$data.username}</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户邮件</label>
                        <div class="col-sm-10">
                            <label class="form-control">{$data.email}</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户备注</label>
                        <div class="col-sm-10">
                            <label class="form-control">{$data.remark}</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户角色</label>
                        <div class="col-sm-10">
                            <label class="form-control"><if condition='$vol.role_id == 0'><span style="color:green;">普通管理员</span><else/><span style="color:red;">超级管理员</span></if></label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">添加时间</label>
                        <div class="col-sm-10">
                            <label class="form-control">{$data.addtime|date='Y-m-d H:i:s',###}</label>
                        </div>
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <a href="javascript:;" id="delBtn" class="btn btn-info pull-right">删除</a>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
    //jQuery代码
    $(function(){
        //给查看按钮绑定点击事件
        $('#delBtn').on('click',function(){
            layer.confirm('您确定要删除这个用户？', {
                btn: ['取消','确定'] //按钮
                }, function(){
                    layer.closeAll('dialog');
                }, function(){
                    $('form').submit();
            });         
        });
    });
</script>
<include file="Layout/footer" />